public class Test019 {
    public static void main(String[] args) {
        System.out.println(fac(5));
    }

    public static int fac(int n) {
        if(n==1){
            return n;
        }
        int ret = n*fac(n-1);
        return ret;
    }
}
